Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@feathersjs/errors
Advanced tools
Common error types for feathers apps
npm install @feathersjs/errors --save
Quick usage:
const errors = require('@feathersjs/errors');
// If you were to create an error yourself.
const notFound = new errors.NotFound('User does not exist');
// You can wrap existing errors
const existing = new errors.GeneralError(new Error('I exist'));
// You can also pass additional data
const data = new errors.BadRequest('Invalid email', {
email: 'sergey@google.com'
});
// You can also pass additional data without a message
const dataWithoutMessage = new errors.BadRequest({
email: 'sergey@google.com'
});
// If you need to pass multiple errors
const validationErrors = new errors.BadRequest('Invalid Parameters', {
errors: { email: 'Email already taken' }
});
// You can also omit the error message and we'll put in a default one for you
const validationErrors = new errors.BadRequest({
errors: {
email: 'Invalid Email'
}
});
Please refer to the @feathersjs/errors API documentation for more details.
Copyright (c) 2018 Feathers Contributors
Licensed under the MIT license.
FAQs
Common error types for Feathers apps
The npm package @feathersjs/errors receives a total of 82,868 weekly downloads. As such, @feathersjs/errors popularity was classified as popular.
We found that @feathersjs/errors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.